# src/httpservice/CMakeLists.txt

# 添加包含目录
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)

# 查找源文件
file(GLOB HTTP_SERVICE_SOURCES
    "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
)

# 添加静态库目标
add_library(httpservice STATIC ${HTTP_SERVICE_SOURCES})

target_include_directories(
    httpservice 
    PRIVATE ${CMAKE_SOURCE_DIR}/src/
    PRIVATE ${CMAKE_SOURCE_DIR}/src/dto
    PRIVATE ${CMAKE_SOURCE_DIR}/src/utils/include
    PRIVATE ${CMAKE_SOURCE_DIR}/src/config/include
    PRIVATE ${CMAKE_SOURCE_DIR}/src/streamproxy/include
)
# 链接依赖库
target_link_libraries(httpservice PRIVATE 
    ${OPENSSL_LIBRARIES}
    ${LIVE555_LIBS}
    nlohmann_json::nlohmann_json utils config streamproxy
)
